package com.jiejie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jiejie.commons.ServerResponse;
import com.jiejie.entity.Customer;
import com.jiejie.entity.Order;
import com.jiejie.entity.Schedule;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 辰广
 * @since 2022-10-05
 */
@Repository
public interface IOrderService  extends IService<Order> {
    public Order getById(int orderId);
    public int saveCOrder(Order order);
    public int updateOrder(Order order);
    public int deleteById(int orderId);
    public int delOrder(Integer orderId);
    public Map<Order, List<Object>> getOrderAndSchedule(Integer customerId);
    Order getOrderByOrderNum(String OrderNum);
}
